/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package depena.urbarama.data;

import java.util.ArrayList;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import org.codehaus.jackson.annotate.JsonProperty;

/**
 *
 * @author Alberto
 */
@XmlRootElement(name="projects")
public class UProjectList 
{
    @XmlElement(name="project")
    @JsonProperty(value="project")
    private ArrayList<UProject> _projects = new ArrayList<UProject>();

    public void add(UProject project)
    {
        _projects.add(project);
    }
    
    public int count()
    {
        return _projects.size();
    }
    
    public UProject at(int index)
    {
        return _projects.get(index);
    }
}
